package com.smartsaas.ugclivii.cd;

import nxopen.NXException;
import nxopen.blockstyler.Node;
import nxopen.blockstyler.Tree;

import java.rmi.RemoteException;

public class DesignTreeAskEditControlHandler implements Tree.AskEditControlCallback{
    @Override
    public Tree.ControlType askEditControlCallback(Tree tree, Node node, int columnID) throws NXException, RemoteException {
        Tree.ControlType controlType=Tree.ControlType.NONE;
        if (columnID==2){
            controlType=Tree.ControlType.LIST_BOX;
            String[] items={"动模图层","定模图层"};
            tree.setEditOptions(items,0);
        }
        return controlType;
    }
}
